package com.ruoyi.common.utils.wx;

/**
 * 常量
 */
public class WXPayConstants {

    public static final String DOMAIN_API = "https://api.mch.weixin.qq.com/v3";

    //app下单
//    public static final String PAY_TRANSACTIONS_APP = "/pay/transactions/jsapi";
    public static final String PAY_TRANSACTIONS_APP = "/pay/partner/transactions/jsapi";

    //TODO 线上记得改成对应服务器上秘钥地址
    public static final String PRIVATE_KEY_PATH =
            //正式服务器地址
            //"/www/wwwroot/fx/java/apiclient_key.pem";
            //测试服务器地址
            "/www/wwwroot/fxtest.fangxi666.com/apiclient_key.pem";
            //本地地址
            //"C:/Users/97099/Desktop/房喜秘钥/apiclient_key.pem";

    // TODO 线上记得改成对应服务器上回调地址
    //微信支付回调
    public static final String WECHAT_PAY_NOTIFY_URL =
            "https://fxtest.fangxi666.com/prod-api/fx/order/payNotify";
    // TODO 线上记得改成对应服务器上回调地址
    //预约服务单微信支付回调
    public static final String APPOINTMENT_WECHAT_PAY_NOTIFY_URL =
            "https://fxtest.fangxi666.com/prod-api/system/appointment/payNotify";


    //微信付会员卡购买支回调
    public static final String WECHAT_MEMBER_PAY_NOTIFY_URL =
            "https://www.sczyjk.top/prod-api/system/member/order/payNotify";

    //微信付储蓄卡购买支回调
    public static final String WECHAT_VALUE_PAY_NOTIFY_URL =
            "https://www.sczyjk.top/prod-api/system/value/card/order/payNotify";

    //申请退款
    public static final String REFUND_DOMESTIC_REFUNDS = "/refund/domestic/refunds";

    //微信退款回调
    public static final String WECHAT_REFUNDS_NOTIFY_URL = "https://www.sczyjk.top/prod-api/system/order/chargebackAPP/payNotify";

    //关闭订单
    public static final String PAY_TRANSACTIONS_OUT_TRADE_NO = "/pay/transactions/out-trade-no/{}/close";
}
